package com.zhmc.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import com.zhmc.myapplication.utils.ToastUtils;

public class LoginActivity extends MyBaseActivity {
    /* access modifiers changed from: protected */
    @Override // androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, androidx.fragment.app.FragmentActivity, com.zhmc.myapplication.MyBaseActivity
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        final EditText editText = (EditText) findViewById(R.id.edit_text);
        findViewById(R.id.iv).setOnClickListener(new View.OnClickListener() {
            /* class com.zhmc.myapplication.LoginActivity.AnonymousClass1 */

            public void onClick(View view) {
                String pass = editText.getText().toString().trim();
                if (TextUtils.isEmpty(pass)) {
                    ToastUtils.showShortToast(LoginActivity.this.getApplicationContext(), "请输入登录密码");
                } else {
                    if (pass.equals("s2nlD8q69w")){
                        LoginActivity.this.startActivity(new Intent(LoginActivity.this.getApplicationContext(), HomeActivity.class));

                    }else {
                        ToastUtils.showShortToast(LoginActivity.this,"密码错误");
                    }

                }
            }
        });
    }
}
